package com.hckjsec.law.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.law.mapper.WebLawConsullingDetailMapper;
import com.hckjsec.law.domain.WebLawConsullingDetail;
import com.hckjsec.law.service.IWebLawConsullingDetailService;

/**
 * 公共法律服务咨询分Service业务层处理
 * 
 * @author cyt
 * @date 2021-11-09
 */
@Service
public class WebLawConsullingDetailServiceImpl implements IWebLawConsullingDetailService 
{
    @Autowired
    private WebLawConsullingDetailMapper webLawConsullingDetailMapper;

    /**
     * 查询公共法律服务咨询分
     * 
     * @param id 公共法律服务咨询分ID
     * @return 公共法律服务咨询分
     */
    @Override
    public WebLawConsullingDetail selectWebLawConsullingDetailById(Long id)
    {
        return webLawConsullingDetailMapper.selectWebLawConsullingDetailById(id);
    }

    /**
     * 查询公共法律服务咨询分列表
     * 
     * @param webLawConsullingDetail 公共法律服务咨询分
     * @return 公共法律服务咨询分
     */
    @Override
    public List<WebLawConsullingDetail> selectWebLawConsullingDetailList(WebLawConsullingDetail webLawConsullingDetail)
    {
        return webLawConsullingDetailMapper.selectWebLawConsullingDetailList(webLawConsullingDetail);
    }

    /**
     * 新增公共法律服务咨询分
     * 
     * @param webLawConsullingDetail 公共法律服务咨询分
     * @return 结果
     */
    @Override
    public int insertWebLawConsullingDetail(WebLawConsullingDetail webLawConsullingDetail)
    {
        return webLawConsullingDetailMapper.insertWebLawConsullingDetail(webLawConsullingDetail);
    }

    /**
     * 修改公共法律服务咨询分
     * 
     * @param webLawConsullingDetail 公共法律服务咨询分
     * @return 结果
     */
    @Override
    public int updateWebLawConsullingDetail(WebLawConsullingDetail webLawConsullingDetail)
    {
        return webLawConsullingDetailMapper.updateWebLawConsullingDetail(webLawConsullingDetail);
    }

    /**
     * 批量删除公共法律服务咨询分
     * 
     * @param ids 需要删除的公共法律服务咨询分ID
     * @return 结果
     */
    @Override
    public int deleteWebLawConsullingDetailByIds(Long[] ids)
    {
        return webLawConsullingDetailMapper.deleteWebLawConsullingDetailByIds(ids);
    }

    /**
     * 删除公共法律服务咨询分信息
     * 
     * @param id 公共法律服务咨询分ID
     * @return 结果
     */
    @Override
    public int deleteWebLawConsullingDetailById(Long id)
    {
        return webLawConsullingDetailMapper.deleteWebLawConsullingDetailById(id);
    }
}
